__author__ = 'Compaq'
class chuong_truyen:
    """Lớp các chương truyện"""
    __ID_TAP_TRUYEN = 0
    __AVATAR = "NONE"
    __TEN_CHUONG_TRUYEN = "NONE"
    __GIOI_THIEU = "NONE"
    __SO_THU_TU = 0
    __URL_CHUONG_TRUYEN = "NONE"

    def __init__(self,id_tap_truyen = 0,avatar ="NONE", ten_chuong_truyen ="NONE",gioi_thieu ="NONE",stt = 0,url ="NONE"):
        self.__ID_TAP_TRUYEN = id_tap_truyen
        self.__AVATAR = avatar
        self.__TEN_CHUONG_TRUYEN = ten_chuong_truyen
        self.__GIOI_THIEU = gioi_thieu
        self.__SO_THU_TU = stt
        self.__URL_CHUONG_TRUYEN = url

    def setIDTaptruyen(self,id = 0):
        self.__ID_TAP_TRUYEN = id
    def getIDTaptruyen(self):
        return self.__ID_TAP_TRUYEN

    def setAvatar(self,url ="NONE"):
        self.__AVATAR = url
    def getAvatar(self):
        return self.__AVATAR

    def setTenchuongtruyen(self,name = "NONE"):
        self.__TEN_CHUONG_TRUYEN = name
    def getTenchuongtruyen(self):
        return self.__TEN_CHUONG_TRUYEN

    def setGioithieu(self,intro = "NONE"):
        self.__GIOI_THIEU = intro
    def getGioithieu(self):
        return self.__GIOI_THIEU

    def setStt(self,num = 0):
        self.__SO_THU_TU = num
    def getStt(self):
        return self.__SO_THU_TU

    def __del__(self):
        del self.__ID_TAP_TRUYEN
        del self.__AVATAR
        del self.__TEN_CHUONG_TRUYEN
        del self.__GIOI_THIEU
        del self.__SO_THU_TU
        del self.__URL_CHUONG_TRUYEN